import { createApp } from 'vue'
import App from './App.vue'
// 路由
import router from './router/router'
// vant
import Vant from 'vant';
import 'vant/lib/index.css';

// vuex
import store from './store/index.js'
// 导航守卫
import './permission.js'

router.afterEach((to,from,next) => {
    window.scrollTo(0,0);
  });

  const app =  createApp(App)
  app.use()
  app.use(router)
  app.use(store)
  app.use(Vant)
  app.mount('#app')
